﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HCSExtensions
{
    public static class ObjectManager
    {
        public static int ToInt32(this object value)
        {
            //if (value == null)
            //{
            //    return 0;
            //}
            return Convert.ToInt32(value);
        }

        public static byte ToByte(this object value)
        {
            //if (value == null)
            //{
            //    return 0;
            //}
            return Convert.ToByte(value);
        }


    }
}
